package com.hoshiicloud.stock.feign.hystrix;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.stock.feign.PlatformFeignService;
import org.springframework.stereotype.Component;

/**
 * 平台微服务FeignClient熔断器
 *
 * @author : yangcheng
 * @date : 2019/5/6 15:37
 * @mail : maiboyc@163.com
 **/
@Component
public class HystrixPlatformFeignFallback implements PlatformFeignService {
    @Override
    public Response getById(Long id) {
        return Response.failed("查询平台信息失败");
    }
}